package com.lm.hutool.example;

import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;

public class HutoolHttpExample {
    public static void main(String[] args) {
        // 发起 GET 请求
        HttpResponse response = HttpRequest.get("https://api.github.com")
                .timeout(2000) // 超时时间
                .execute();
        System.out.println("GET 请求返回内容：" + response.body());
    }
}
